package cn.texous.demo.dzs.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * insert description here
 *
 * @author Showa.L
 * @since 2019/7/14 15:32
 */
@Data
@Component
@ConfigurationProperties(prefix = "oauth2.config")
public class OauthProperties {

    private String clientId; // : R2dpxQ3vPrtfgF72
    private String clientSecret; // : fDw7Mpkk5czHNuSRtmhGmAGL42CaxQB9
    private String clientName; // : Auth Server
    private String scope; // : user_info
    private String clientAuthenticationMethod; // : basic
    private String baseUrl;
    private String tokenUri; // : http://localhost:11111/author/oauth/token
    private String checkTokenUri;
    private String authorizationUri; // : http://localhost:11111/author/oauth/authorize
    private String checkAuthUri;
    private String userInfoUri; // : http://localhost:11111/author/user/me
    private String userNameAttribute; // : username

}
